package com.ksc.storekeeper.shared.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.ksc.storekeeper.shared.dto.ProductDTO;

public interface ProductServiceAsync {
	void saveProduct(ProductDTO product,AsyncCallback<Void> callback);
	
	void searchProductByCategory(String categoryName,AsyncCallback<List<ProductDTO>> callback);
	
	void searchProductByCode(String code,AsyncCallback<ProductDTO> callback);
	
	void getAllProducts(AsyncCallback<List<ProductDTO>> callback);
	
	void getProductById(Long id, AsyncCallback<ProductDTO> callback);
}
